<?php if(count($project_list)>0):?>
	<h3>Select the project to export</h3>
	<table class="tab1" cellspacing="0">
		<thead>
		<th width="40px">&nbsp;</th>
		<th>Project Name</th>
		<th>Owner</th>
	</thead>
	<tfoot>
	<th>&nbsp;</th>
	<th>Project Name</th>
	<th>Owner</th>
	</tfoot>
	<?php if(!empty($project_list)):?>
		<?php
		$i = 0; // counter to change the background of lines
		$class;	// line's class
		?>
		<?php foreach($project_list as $project): ?>
		<?php
			if ($i % 2 == 0) {
				$class = 'even';
			} else {
				$class = 'odd';
			} // if
			$i++;
		?>
		<tr class="tab1-line tab1-<?php echo $class ?>Line">
				<td>
					<div class="actions">
						<!-- <a title="Export this project" href="<?php //echo url_for('exportToLuna/exportProject?id='.$project->getId()) ?>">
				<button class="updateButton roundedCorner baseButton"></button>
					</a> -->
					<a title="Export this project" href="#" onclick="showExportPopup(<?php echo $project->getId()?> , '<?php echo $project->getName()?>' , '<?php echo url_for('exportToLuna/exportProject') ?>','Export <?php echo $project->getName()?> project' )">
						<button class="exportButton roundedCorner baseButton"></button>
					</a>
					</div>        
				</td>
				<td><?php echo $project->getName(); ?></td>
				<td><?php echo $project->getUserName() ?></td>
			</tr>
		<?php endforeach; ?>
	<?endif; ?>
	</table>
<?php  else :?>
	<h3>No project </h3>
<?php endif;?>